import { Rule } from 'antd/es/form';
import { DateTime } from 'luxon'; 
import { useIntl } from "umi";

 export interface PageParams  {
    page: number ;
    pageSize: number ;
  }

  export interface ComponentType {
  key: string;
  name: string;
}

export type CustomerDataVo = {
  id: string;
  customerCode: number;
  customerType: string;
  customerName: string;
  customerShortName: string;
  legalPerson: string;
  customerAddress: string;
  customerPhone: string;

  customerTelephone?: string;
  customerEmail?: string;
  customerDomain?: string;
  customerLogo?: string;

  customerCurrency: string;
  customerCashType: string;
  customerBillingCycle: string;
  validPeriodDateFor: string;
  validPeriodDateTo: string;
  customerStatus:number;
  // 其他字段...
};

export type CustomerAddressVo = {
  id: string;
  customerId?:string;
  customerCode?:string;
  shipperName: string; //发货人
  sn: string; //地址代码
  country: string; //国家
  postcode: string; //邮编
  state: string; //州
  city: string; 
  streetAddress1: string; 
  streetAddress2?: string; 
  doorplate?: string; //门牌号
  telephone: string; 
  company: string; //公司

  // 其他字段...
};

export type DictTypeVo = {
  id?: string;
  name: string;
  type: string;
  status: string;
  remark?: string;
  createTime: number; // 使用 ISO 8601 格式的字符串
  // 其他字段...
};


export type DictDataVo = {
  id?: string;
  dictType?:string;
  status?: number;
  label: string;
  sort: number;
  value: string;
  colorType:string;
  remark?: string;
  createTime: string;
};